#ifndef FORMSERVERSETTINGS_H
#define FORMSERVERSETTINGS_H

#include <QWidget>

#include "databasemanager.h"

namespace Ui {
    class formServerSettings;
}

class FormServerSettings : public QWidget {
    Q_OBJECT
public:
    FormServerSettings(QWidget *parent = 0);
    ~FormServerSettings();

protected:
    void changeEvent(QEvent *e);

private slots:
    void newServerList(ServerInformationList);
    void saveServer();
    void deleteServer();
    void refreshServerList();
    void selectServer(int serverId);

private:
    Ui::formServerSettings *ui;
    DatabaseManager *databaseManager;
    ServerInformationList serverInformationList;
};

#endif // FORMSERVERSETTINGS_H
